from typing import List,Dict


def hello(msg:str):
    print("hello ",msg)

# 会警告提示
# hello(123)    #Expected type 'str', got 'int' instead
hello('jack')

def read(books:List[str]):
    for b in books:
        print(b)

read([1,(3,4),3,'python 入门'])


def sale_books(books:Dict[str,float]):
    for b in books.items():
        print(b)

sale_books({'python 网络编程':88,'spring boot 核心':88.9})